let qualityManage = [
  /** 质量管理 **/
  // 历史检验数据查询
  {
    path: '/historicalInspection',
    name: 'historicalInspection',
    component (resolve) {
      require(['../view/qualityManage/qualityManage/historicalInspection/HistoricalInspection'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'historicalInspection',
      subMenu: 'qualityManage',
      rootDir: 'qualityManage',
      title: '历史检验数据查询'
    }
  },
  // 检验工作台
  {
    path: '/workShopInspection',
    name: 'workShopInspection',
    component (resolve) {
      require(['../view/qualityManage/qualityManage/workShopInspection/WorkShopInspection'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'workShopInspection',
      subMenu: 'qualityManage',
      rootDir: 'qualityManage',
      title: '检验工作台'
    }
  },
  // 不合格审理单管理
  {
    path: '/unqualifiedReviewManage',
    name: 'unqualifiedReviewManage',
    component (resolve) {
      require(['../view/qualityManage/qualityManage/unqualifiedReviewManage/UnqualifiedReviewManage'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'unqualifiedReviewManage',
      subMenu: 'qualityManage',
      rootDir: 'qualityManage',
      title: '不合格审理单管理'
    }
  },
  // 工序送检合格率
  {
    path: '/processPass',
    name: 'processPass',
    component (resolve) {
      require(['../view/qualityManage/qualityManage/processPass/ProcessPass'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'processPass',
      subMenu: 'qualityManage',
      rootDir: 'qualityManage',
      title: '工序送检合格率'
    }
  },
  // 车间质量问题分析
  {
    path: '/qualityProblem',
    name: 'qualityProblem',
    component (resolve) {
      require(['../view/qualityManage/qualityManage/qualityProblem/QualityProblem'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'qualityProblem',
      subMenu: 'qualityManage',
      rootDir: 'qualityManage',
      title: '车间质量问题分析'
    }
  },
  // 检验工作台大字版本
  {
    path: '/workShopInspectionWidthBoard',
    name: 'workShopInspectionWidthBoard',
    component (resolve) {
      require(['../view/qualityManage/qualityManage/workShopInspectionWidthBoard/WorkShopInspectionWidthBoard'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'workShopInspectionWidthBoard',
      subMenu: 'qualityManage',
      rootDir: 'qualityManage',
      title: '检验工作台大字'
    }
  },
  // 检验工作台大字版本详情
  {
    path: '/workShopInspectionWidthBoardDetail',
    name: 'workShopInspectionWidthBoardDetail',
    component (resolve) {
      require(['../view/qualityManage/qualityManage/workShopInspectionWidthBoard/WorkShopInspectionWidthBoardDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'workShopInspectionWidthBoard',
      subMenu: 'qualityManage',
      rootDir: 'qualityManage',
      title: '工序详情'
    }
  },
]

export default qualityManage
